
#ifndef MYDEF_H
#define MYDEF_H

/*****************************************************************
* 							TYPEDEF
******************************************************************/
typedef  double REAL;   /* float or double for Real number */

typedef enum
{
    FALSE = (uint32_t)0,
    TRUE  = (uint32_t)1
} BOOL; 

typedef struct
{
    int16_t x;
    int16_t y;
    int16_t z;
    BOOL    state;    /* TRUE: DATA IS CORRECT */
}INT_3D;

typedef struct
{
    REAL x;
    REAL y;
    REAL z;
    BOOL  state;    /* TRUE: DATA IS CORRECT */
}REAL_3D;

typedef struct
{
    INT_3D acc;
    INT_3D gyr;
    INT_3D mag;
}INT_IMU;

typedef struct
{
    REAL_3D acc;
    REAL_3D gyr;
    REAL_3D mag;
}REAL_IMU;


#endif /* MYDEF_H */
